import request from '@/utils/request'

// 添加用户关注
export function addUserFollow(userFollow) {
  return request({
    url: '/userFollow/addUserFollow',
    method: 'post',
    data: userFollow
  })
}

// 删除用户关注
export function deleteUserFollow(userFollow) {
  return request({
    url: '/userFollow/deleteUserFollow',
    method: 'post',
    data: userFollow
  })
}

// 获取关注的用户列表
export function getUserFollow(userId) {
  return request({
    url: '/userFollow/getUserFollow?userId=' + userId,
    method: 'get'
  })
}

// 获取粉丝列表
export function getUserFan(userId) {
  return request({
    url: '/userFollow/getUserFan?userId=' + userId,
    method: 'get'
  })
}
